package com.luban.cloud.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "luban.register.instance")
public class RegisterConfigProperties {

    private String hostname;

    //127.0.0.1 , 127.0.0.2,127.0.0.3
    private String registerUrl;

    @Value("register-with")
    private Boolean registerWith = true;

    public String getHostname() {
        return hostname;
    }

    public void setHostname(String hostname) {
        this.hostname = hostname;
    }

    public String getRegisterUrl() {
        return registerUrl;
    }

    public void setRegisterUrl(String registerUrl) {
        this.registerUrl = registerUrl;
    }

    public Boolean getRegisterWith() {
        return registerWith;
    }

    public void setRegisterWith(Boolean registerWith) {
        this.registerWith = registerWith;
    }
}
